﻿ 
namespace Core.Items.Modules
{
    /*

		MetaGroup                      = Weapons
		Group                          = MissileLaunchers
		Size                           = Small
		Module                         = pelistec-horosol dbm light missile launcher prototype
		CpuUsage                       = 27.00 TF
		ReactorUsage                   = 21.00 RP
		Type                           = Active
		Slot                           = Missile
		TechnologicalLevel             = T2P
		Mass                           = 202.50 kg
		PackedVolume                   = 0.50 U
		Volume                         = 1.00 U
		AccumulatorConsumption         = 1.00 AP
		CycleTime                      = 7.50 sec
		AmmoChargeType                 = Small missiles
		AmmoChargeCapacity             = 50 pcs
		Damage                         = 100 %
		HitDispersion                  = 1.00 •
    */

    using System;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Extensions;
    using Features;
    
    /// <summary>
    /// Pelistec-Horosol DBM light missile launcher prototype module class
    /// </summary>
    /// <remarks>File generated on 31/10/2011 16:00:57</remarks>
    public sealed class PelistecHorosolDbmLightMissileLauncherPrototype : ModuleBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="PelistecHorosolDbmLightMissileLauncherPrototype"/> class.
        /// </summary>
        public PelistecHorosolDbmLightMissileLauncherPrototype()
            : base(
            "Pelistec-Horosol DBM light missile launcher prototype",
            "",
            ModuleMetaGroupsEnum.Weapons,
            ModuleGroupsEnum.MissileLaunchers,
            TechnologyLevelsEnum.Level2|TechnologyLevelsEnum.Prototype,
            SizesEnum.Small,
            new LazyFeature[] { 
				new LazyFeature(typeof(WeaponCpuUsage<double>),27.00),
				new LazyFeature(typeof(WeaponReactorUsage<double>),21.00),
				new LazyFeature(typeof(ModuleMass<double>),202.50),
				new LazyFeature(typeof(WeaponAccumulatorUsage<double>),1.00),
				new LazyFeature(typeof(AmmunitionType<AmmunitionTypesEnum>),AmmunitionTypesEnum.SmallMissiles),
				new LazyFeature(typeof(AmmoCapacity<double>),50),
				new LazyFeature(typeof(SmallMissileLauncherCycleTime<double>),7.50),
				new LazyFeature(typeof(SmallMissileLauncherHitDispersion<double>),1.00),
				new LazyFeature(typeof(SmallMissileLauncherDamage<double>),100),
				new LazyFeature(typeof(MissileLauncherOptimal<double>),0), },
            null,
            new IModifier[] { 
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.RobotMass, 202.50 ){ IsVisible = false }, } )
        {
        }

        /// <summary>
        /// Obtains the activation type
        /// </summary>
        public override ModuleActivationTypesEnum ActivationType
        {
            get { return ModuleActivationTypesEnum.Active; }
        }
        /// <summary>
        /// Obtains the module slot group 
        /// </summary>
        public override SlotGroupsEnum SlotGroup
        {
            get { return SlotGroupsEnum.Chassis; }
        }
        /// <summary>
        /// Obtains the module slot type 
        /// </summary>
        public override SlotTypesEnum SlotType
        {
            get { return SlotTypesEnum.Missile; }
        }
    }
}